package com.quwan.common.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Hayson
 * @since 2021/7/5 21:59
 */
@Data
@Accessors(chain = true)
public class PageResult<T>  implements Serializable {
    private static final long serialVersionUID = -6299931577562283629L;
    @ApiModelProperty("总数")
    private long total = 0;
    @ApiModelProperty("每页显示条数")
    private long size = 0;
    @ApiModelProperty("当前页")
    private long current = 0;
    @ApiModelProperty("总页数")
    private long pages = 0;
    @ApiModelProperty("数据")
    private List<T> records = new ArrayList<>();
}
